Optimal. Leaf size=151 \[ \frac{\sqrt{-x^2-4 x-3}}{9 x}+\frac{2 \tan ^{-1}\left (\frac{2 x+3}{\sqrt{3} \sqrt{-x^2-4 x-3}}\right )}{3 \sqrt{3}}+\frac{2}{27} \sqrt{2} \tan ^{-1}\left (\frac{1-\frac{x+3}{\sqrt{-x^2-4 x-3}}}{\sqrt{2}}\right )-\frac{2}{27} \sqrt{2} \tan ^{-1}\left (\frac{\frac{x+3}{\sqrt{-x^2-4 x-3}}+1}{\sqrt{2}}\right )+\frac{10}{27} \tanh ^{-1}\left (\frac{x}{\sqrt{-x^2-4 x-3}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.00088, antiderivative size = 151, normalized size of antiderivative = 1., number of steps used = 20, number of rules used = 12, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4 \[ \frac{\sqrt{-x^2-4 x-3}}{9 x}+\frac{2 \tan ^{-1}\left (\frac{2 x+3}{\sqrt{3} \sqrt{-x^2-4 x-3}}\right )}{3 \sqrt{3}}+\frac{2}{27} \sqrt{2} \tan ^{-1}\left (\frac{1-\frac{x+3}{\sqrt{-x^2-4 x-3}}}{\sqrt{2}}\right )-\frac{2}{27} \sqrt{2} \tan ^{-1}\left (\frac{\frac{x+3}{\sqrt{-x^2-4 x-3}}+1}{\sqrt{2}}\right )+\frac{10}{27} \tanh ^{-1}\left (\frac{x}{\sqrt{-x^2-4 x-3}}\right ) \]
Antiderivative was successfully verified.
[In] Int[1/(x^2*Sqrt[-3 - 4*x - x^2]*(3 + 4*x + 2*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 118.371, size = 150, normalized size = 0.99 \[ - \frac{2 \sqrt{2} \operatorname{atan}{\left (\sqrt{2} \left (\frac{3 \left (\frac{x}{3} + 1\right )}{2 \sqrt{- x^{2} - 4 x - 3}} - \frac{1}{2}\right ) \right )}}{27} - \frac{2 \sqrt{2} \operatorname{atan}{\left (\sqrt{2} \left (\frac{3 \left (\frac{x}{3} + 1\right )}{2 \sqrt{- x^{2} - 4 x - 3}} + \frac{1}{2}\right ) \right )}}{27} + \frac{2 \sqrt{3} \operatorname{atan}{\left (- \frac{\sqrt{3} \left (- 4 x - 6\right )}{6 \sqrt{- x^{2} - 4 x - 3}} \right )}}{9} + \frac{10 \operatorname{atanh}{\left (\frac{x}{\sqrt{- x^{2} - 4 x - 3}} \right )}}{27} + \frac{\sqrt{- x^{2} - 4 x - 3}}{9 x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/x**2/(2*x**2+4*x+3)/(-x**2-4*x-3)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 6.29769, size = 1135, normalized size = 7.52 \[ -\frac{2 \tan ^{-1}\left (\frac{(2 x+3) \sqrt{-x^2-4 x-3}}{\sqrt{3} \left (x^2+4 x+3\right )}\right )}{3 \sqrt{3}}-\frac{i \left (-i+2 \sqrt{2}\right ) \tan ^{-1}\left (\frac{22 i \sqrt{2} x^4+16 x^4+18 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^3+100 i \sqrt{2} x^3+124 x^3+72 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^2+137 i \sqrt{2} x^2+324 x^2+99 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x+48 i \sqrt{2} x+324 x+54 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3}-9 i \sqrt{2}+108}{32 \sqrt{2} x^4+34 i x^4+176 \sqrt{2} x^3+112 i x^3+306 \sqrt{2} x^2+125 i x^2+216 \sqrt{2} x+84 i x+54 \sqrt{2}+45 i}\right )}{9 \sqrt{1-2 i \sqrt{2}}}+\frac{\left (i+2 \sqrt{2}\right ) \tanh ^{-1}\left (\frac{22 \sqrt{2} x^4+16 i x^4+18 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^3+100 \sqrt{2} x^3+124 i x^3+72 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^2+137 \sqrt{2} x^2+324 i x^2+99 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x+48 \sqrt{2} x+324 i x+54 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3}-9 \sqrt{2}+108 i}{32 \sqrt{2} x^4-34 i x^4+176 \sqrt{2} x^3-112 i x^3+306 \sqrt{2} x^2-125 i x^2+216 \sqrt{2} x-84 i x+54 \sqrt{2}-45 i}\right )}{9 \sqrt{1+2 i \sqrt{2}}}+\frac{\left (i+2 \sqrt{2}\right ) \log \left (\left (-2 i x+\sqrt{2}-2 i\right )^2 \left (2 i x+\sqrt{2}+2 i\right )^2\right )}{18 \sqrt{1+2 i \sqrt{2}}}+\frac{\left (-i+2 \sqrt{2}\right ) \log \left (\left (-2 i x+\sqrt{2}-2 i\right )^2 \left (2 i x+\sqrt{2}+2 i\right )^2\right )}{18 \sqrt{1-2 i \sqrt{2}}}-\frac{\left (-i+2 \sqrt{2}\right ) \log \left (\left (2 x^2+4 x+3\right ) \left (2 i \sqrt{2} x^2+2 x^2-2 \sqrt{2 \left (1-2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3} x+8 i \sqrt{2} x+4 x-2 \sqrt{2 \left (1-2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3}+6 i \sqrt{2}+3\right )\right )}{18 \sqrt{1-2 i \sqrt{2}}}-\frac{\left (i+2 \sqrt{2}\right ) \log \left (\left (2 x^2+4 x+3\right ) \left (-2 i \sqrt{2} x^2+2 x^2-2 \sqrt{2 \left (1+2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3} x-8 i \sqrt{2} x+4 x-2 \sqrt{2 \left (1+2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3}-6 i \sqrt{2}+3\right )\right )}{18 \sqrt{1+2 i \sqrt{2}}}+\frac{\sqrt{-x^2-4 x-3}}{9 x} \]
Antiderivative was successfully verified.
[In] Integrate[1/(x^2*Sqrt[-3 - 4*x - x^2]*(3 + 4*x + 2*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.023, size = 169, normalized size = 1.1 \[{\frac{1}{9\,x}\sqrt{-{x}^{2}-4\,x-3}}-{\frac{2\,\sqrt{3}}{9}\arctan \left ({\frac{ \left ( -6-4\,x \right ) \sqrt{3}}{6}{\frac{1}{\sqrt{-{x}^{2}-4\,x-3}}}} \right ) }+{\frac{\sqrt{3}\sqrt{4}}{81}\sqrt{3\,{\frac{{x}^{2}}{ \left ( -3/2-x \right ) ^{2}}}-12} \left ( \sqrt{2}\arctan \left ({\frac{\sqrt{2}}{6}\sqrt{3\,{\frac{{x}^{2}}{ \left ( -3/2-x \right ) ^{2}}}-12}} \right ) -5\,{\it Artanh} \left ( 3\,{\frac{x}{-3/2-x}{\frac{1}{\sqrt{3\,{\frac{{x}^{2}}{ \left ( -3/2-x \right ) ^{2}}}-12}}}} \right ) \right ){\frac{1}{\sqrt{{1 \left ({{x}^{2} \left ( -{\frac{3}{2}}-x \right ) ^{-2}}-4 \right ) \left ( 1+{x \left ( -{\frac{3}{2}}-x \right ) ^{-1}} \right ) ^{-2}}}}} \left ( 1+{x \left ( -{\frac{3}{2}}-x \right ) ^{-1}} \right ) ^{-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/x^2/(2*x^2+4*x+3)/(-x^2-4*x-3)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{{\left (2 \, x^{2} + 4 \, x + 3\right )} \sqrt{-x^{2} - 4 \, x - 3} x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.305584, size = 258, normalized size = 1.71 \[ \frac{\sqrt{3}{\left (2 \, \sqrt{3} \sqrt{2} x \arctan \left (\frac{\sqrt{2}{\left (x + 3 \, \sqrt{-x^{2} - 4 \, x - 3}\right )}}{2 \,{\left (2 \, x + 3\right )}}\right ) + 2 \, \sqrt{3} \sqrt{2} x \arctan \left (-\frac{\sqrt{2}{\left (x - 3 \, \sqrt{-x^{2} - 4 \, x - 3}\right )}}{2 \,{\left (2 \, x + 3\right )}}\right ) - 5 \, \sqrt{3} x \log \left (-\frac{2 \, \sqrt{-x^{2} - 4 \, x - 3} x + 4 \, x + 3}{x^{2}}\right ) + 5 \, \sqrt{3} x \log \left (\frac{2 \, \sqrt{-x^{2} - 4 \, x - 3} x - 4 \, x - 3}{x^{2}}\right ) + 36 \, x \arctan \left (\frac{\sqrt{3}{\left (2 \, x + 3\right )}}{3 \, \sqrt{-x^{2} - 4 \, x - 3}}\right ) + 6 \, \sqrt{3} \sqrt{-x^{2} - 4 \, x - 3}\right )}}{162 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{x^{2} \sqrt{- \left (x + 1\right ) \left (x + 3\right )} \left (2 x^{2} + 4 x + 3\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/x**2/(2*x**2+4*x+3)/(-x**2-4*x-3)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.273651, size = 363, normalized size = 2.4 \[ \frac{2}{27} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\frac{3 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + 1\right )}\right ) - \frac{4}{9} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (\frac{2 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + 1\right )}\right ) + \frac{2}{27} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\frac{\sqrt{-x^{2} - 4 \, x - 3} - 1}{x + 2} + 1\right )}\right ) - \frac{\frac{\sqrt{-x^{2} - 4 \, x - 3} - 1}{x + 2} + 2}{18 \,{\left (\frac{\sqrt{-x^{2} - 4 \, x - 3} - 1}{x + 2} + \frac{{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 1\right )}} + \frac{5}{27} \,{\rm ln}\left (\frac{2 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac{3 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 1\right ) - \frac{5}{27} \,{\rm ln}\left (\frac{2 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac{{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)*x^2),x, algorithm="giac")
[Out]